package com.qf.dao;

import com.qf.bean.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * IntelliJ IDEA -> member
 * 2019/12/3 14:29
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
public interface  UserDao  extends JpaRepository<User,Integer> {
    User findByName(String name );
   Page<User> findByNameContaining(String name , Pageable pageable);
}
